package com.xcity.pomelo.request;

import com.xcity.pomelo.PomeloRoute;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.PomeloPacket;

@PomeloMessage(route = PomeloRoute.MAP)
public class MapRequest extends PomeloPacket {

	protected Integer mapX, mapY;

	public Integer getMapX() {
		return mapX;
	}

	public void setMapX(Integer mapX) {
		this.mapX = mapX;
	}

	public Integer getMapY() {
		return mapY;
	}

	public void setMapY(Integer mapY) {
		this.mapY = mapY;
	}
	
	public boolean isNull() {
		return mapX == null || mapY == null;
	}
	
}
